#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    // 防止隐式类型转换
    // explicit MyPushButton(QWidget *parent = nullptr);

    // 构造函数 normalImg表示正常显示的图片  pressImg代表按下后显示的图片，默认为空
    MyPushButton(QString normalImg, QString pressImg = "");

    QString normalImgPath;
    QString pressImgPath;

    void zoom1();
    void zoom2();

protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);


signals:

public slots:
};

#endif // MYPUSHBUTTON_H
